import request from '@/plugins/axios'

// 查询部门分页
export function bmPage(data) {
    return request({
        url: '/sysBm/v1/page',
        method: 'post',
        data: data
    })
}

// 查询部门新增
export function bmAdd(data) {
  return request({
      url: '/sysBm/v1/add',
      method: 'post',
      data: data
  })
}

// 查询部门列表
export function bmList(data) {
  return request({
      url: '/sysBm/v1/list',
      method: 'post',
      data: data
  })
}

// 查询部门修改
export function bmUpdate(data) {
  return request({
      url: '/sysBm/v1/update',
      method: 'post',
      data: data
  })
}

// 查询部门详情
export function bmDetail(data) {
  return request({
      url: '/sysBm/v1/detail',
      method: 'post',
      data: data
  })
}

// 查询部门删除
export function bmDelete(data) {
  return request({
      url: '/sysBm/v1/delete',
      method: 'post',
      data: data
  })
}

// 查询部门成员
export function bmMemberList(data) {
  return request({
      url: '/sysBm/v1/memberList',
      method: 'post',
      data: data
  })
}

// 查询部门负责人
export function bmHeadList(data) {
  return request({
      url: '/sys/user/bmHeadList',
      method: 'post',
      data: data
  })
}

// 查询项目负责人
export function projectManagerList(data) {
  return request({
      url: '/sys/user/projectManagerList',
      method: 'post',
      data: data
  })
}


// 查询成员列表
export function projectPartnerList(data) {
  return request({
      url: '/sys/user/projectPartnerList',
      method: 'post',
      data: data
  })
}

// 查询部门详情
export function bmInfo(data) {
    return request({
        url: '/sysBm/v1/info',
        method: 'post',
        data: data
    })
}

export function changeBmHead(data) {
    return request({
        url: '/sysBm/v1/changeBmHead',
        method: 'post',
        data: data
    })
}

export function bmAddMembers(data) {
    return request({
        url: '/sysBm/v1/addMembers',
        method: 'post',
        data: data
    })
}

export function bmMemberDelete(data) {
    return request({
        url: '/sysBm/v1/memberDelete',
        method: 'post',
        data: data
    })
}


